var limsPersonCertificate = Gikam.getPageObject({

    getEditListColumns: function () {
        return [{
            checkbox: true
        }, {index: true}, /*{
            field: 'sorter',
            title: 'T_LIMS_PERSON_CERTIFICATE.SORTER'
        },*/ {
            field: 'certificateNumber',
            title: 'T_LIMS_PERSON_CERTIFICATE.CERTIFICATENUMBER',
            validators: ['strLength[0,50]'],
            editor: true
        }, {
            field: 'certificateName',
            title: 'T_LIMS_PERSON_CERTIFICATE.CERTIFICATENAME',
            validators: ['strLength[0,100]'],
            editor: true
        }, {
            field: 'issuingUnit',
            title: 'T_LIMS_PERSON_CERTIFICATE.ISSUINGUNIT',
            validators: ['strLength[0,150]'],
            editor: true
        }, {
            field: 'startDate',
            title: 'T_LIMS_PERSON_CERTIFICATE.STARTDATE',
            type: 'date',
            editor: true
        }, {
            field: 'endDate',
            title: 'T_LIMS_PERSON_CERTIFICATE.ENDDATE',
            type: 'date',
            editor: true
        }]
    },

    getBaseInfoFormFields: function () {
        return [{
            field: 'certificateNumber',
            title: 'T_LIMS_PERSON_CERTIFICATE.CERTIFICATENUMBER',
            validators: ['strLength[0,50]'],
        }, {
            field: 'certificateName',
            title: 'T_LIMS_PERSON_CERTIFICATE.CERTIFICATENAME',
            validators: ['strLength[0,100]'],
        }, {
            field: 'issuingUnit',
            title: 'T_LIMS_PERSON_CERTIFICATE.ISSUINGUNIT',
            validators: ['strLength[0,150]'],
        },]
    },

    getChooseListColumns: function () {
        return [{index: true},{
            field: 'certificateNumber',
            title: 'T_LIMS_PERSON_CERTIFICATE.CERTIFICATENUMBER'
        }, {
            field: 'certificateName',
            title: 'T_LIMS_PERSON_CERTIFICATE.CERTIFICATENAME'
        }, {
            field: 'issuingUnit',
            title: 'T_LIMS_PERSON_CERTIFICATE.ISSUINGUNIT'
        },]
    },

    baseUrl: IFM_CONTEXT + '/secure/basemodule/rm/person-certificates'
})
